import request from "@/utils/request";
export const getProductService = (data) =>
  request.get("/api/product/list", {params: data});

export const addProductService = (data) =>
  request.post("/api/product/add", data, {headers: {'Content-Type': 'multipart/form-data'}});

export const delProductService = (id) =>
  request.delete("/api/product/delete/"+id);

export const updateProductService = (data) =>
  request.post("/api/product/update", data, {headers: {'Content-Type': 'multipart/form-data'}});
